package com.pubinfo.passbook.common.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @TableName t_auto_witeoff_manage
 */
@TableName(value = "t_auto_witeoff_manage")
@Data
public class TAutoWiteoffManage implements Serializable {
  /**
   *
   */
  @TableId(type = IdType.ASSIGN_UUID, value = "id")
  private String id;
  
  /**
   * 报账单id
   */
  private String witeoffId;
  
  /**
   * 是否发起短信成功 0 失败 1成功
   */
  private Boolean isSend;
  /**
   * 批id
   */
  private String batchId;
  
  /**
   * 短信内容
   */
  private String msgContext;
  
  /**
   * 报账金额
   */
  private BigDecimal sum = BigDecimal.ZERO;
  
  /**
   * 报账金额规则说明
   */
  private String detalis;
  private String acct;
  private Integer count;
  private Boolean isTest;
  @TableField(fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
  /**
   *
   */
  @TableField(fill = FieldFill.UPDATE)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date updateTime;
  /**
   * 报账单json
   */
  @TableField(typeHandler = FastjsonTypeHandler.class)
  private JSONObject json;
  
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
}